clc
clear all

x =[1:10,10:15,15:25,25:30,30:40,40:45,45:55,55:60,60:70,70:75,75:85,85:90,90:100];
y =[zeros(1,10),ones(1,6)*0.8,zeros(1,11),ones(1,6)*-0.8,zeros(1,11),ones(1,6)*0.5,zeros(1,11),ones(1,6)*-0.5,zeros(1,11),ones(1,6)*0.3,zeros(1,11),ones(1,6)*-0.3,zeros(1,11)];

Save = figure('Color',[1 1 1]);
plot(x,y)
hold on
axis([0 100 -1 1])
xlabel('Tid [s]')
ylabel('Hastighed v [m/s]')
legend('Referencesignal')
grid
set(legend,'Position',[0.68 0.79 0.16 0.045]);

set(gcf,'PaperUnits','inches','PaperPosition',[0 +2 10 4])
print(Save,'-depsc','accepttest_x_hast.eps')